<template>
  <el-form :rules="rules" :model="formInline">
    <el-form-item class="pwd" label=" 新增类目名称name：" prop="className">
      <el-input
        type="text"
        class="addClassName"
        placeholder="请输入新增类目的名称"
        v-model="formInline.className"
      >
      </el-input>
    </el-form-item>
    <el-form-item class="pwd" label=" 排序order：" prop="classSort">
      <el-input
        type="text"
        class="addClassSort"
        placeholder="请输入排序数值"
        v-model="formInline.classSort"
      >
      </el-input>
    </el-form-item>
  </el-form>
</template>

<script setup>
import { reactive } from "vue";
const formInline = reactive({
  className: "",
  classSort: "",
});
const rules = reactive({
  className: [
    {
      required: true,
      message: "请输name",
      trigger: "blur",
    },
  ],
  classSort: [
    {
      required: true,
      message: "请输入order",
      trigger: "blur",
    },
  ],
});
defineExpose({
  formInline,
});
</script>

<style lang="scss" scoped></style>
